/*package br.com.stefanini.schs.ejb.sessionBean;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;

import br.com.stefanini.schs.ejb.entity.Estagiario;

@Stateless
public class EstagiarioSessionBean {
	
	@PersistenceContext
	private EntityManager entityManager;
	
	public Estagiario consultarEstagiarioEmail(String email) {
		Query query = entityManager.createNamedQuery("Estagiario.consultarEstagiarioPorEmail");
		query.setParameter("email", email);
		try {
			return (Estagiario) query.getSingleResult();
		} catch (NoResultException e) {
			return null;
		}

	}

}
*/